#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
int* twoSum(int* numbers, int numbersSize, int target, int* returnSize) {
    if (numbersSize == 0)
        return 0;
    *returnSize = 2;
    int left = 0, right = numbersSize - 1;
    int* ret = (int*)malloc(sizeof(int) * *returnSize);
    while (left < right)
    {
        int sum = numbers[left] + numbers[right];
        if (sum == target)
        {
            ret[0] = left + 1;
            ret[1] = right + 1;
            return ret;
        }
        else if (sum < target)
            ++left;
        else
            --right;
    }
    return ret;
}

int main()
{

	return 0;
}